<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${ctx}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${ctx}/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctx}/js/validate.addmethod.js" type="text/javascript"></script>
<script src="${ctx}/js/messages_cn.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function() {
    // validate the comment form when it is submitted
    $("#commentForm").validate();
});    
 
</script>
<title>Insert title here</title>
</head>
<body>
<form class="cmxform" id="commentForm" method="get" action="">
    <fieldset>
        <legend>Please provide your name, email address (won't be published) and a comment</legend>
        <p>
            <label for="cname">Name (required, at least 2 characters)</label>
            <input id="cname" name="name" class="required" minlength="2"  maxlength="8"/>
            <!--            <input id="confirm_password" name="password" equalTo="#password" />  -->
        <p>
            <label for="cemail">E-Mail (required)</label>
            <input id="cemail" type="text" name="email" class="required email"  />
        </p>
        <p>
            <label for="idno">身份证</label>
            <input id="idno" type="text" name="idno" class="required isIdCardNo" />
        </p>
        <p>
            <input class="submit" type="submit" value="Submit"/>
        </p>
    </fieldset>
</form>
</body>
</html>